package com.zhang.common.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.List;


@Data
@AllArgsConstructor
@NoArgsConstructor
public class MenuDto {
    private Long id;
    private String name;
    private String title;
    private String icon;
    private String path;
    private String component;
    private List<MenuDto> children = new ArrayList<>();

    public MenuDto(Long id, String name, String title, String icon, String path, String component) {
        this.id = id;
        this.name = name;
        this.title = title;
        this.icon = icon;
        this.path = path;
        this.component = component;
    }
}
